package pers.lance.administrator.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import pers.lance.administrator.pojo.Customer;
import pers.lance.administrator.service.CustomerService;

import java.util.List;

/**
 * @ Author     ：LILA3
 * @ Date       ：Created in 8:55 PM 7/30/2018
 */
@Controller
@RequestMapping("/customer")
public class CustomerController {

    @Autowired
    CustomerService customerService;

    @PostMapping("/lists")
    @ResponseBody
    public List<Customer> lists() {
        return customerService.findAllCutomer();
    }


}
